package com.at.bilibili.dao;

import com.at.bilibili.domain.FollowingGroup;
import com.at.bilibili.domain.UserFollowing;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserFollowingDao {
    /**
     * 删除关注者 与 被关注者 关联关系
     * @param userId 关注者
     * @param followingId 被关注者
     * @return
     */
    Integer deleteUserFollowing(@Param("userId") Long userId, @Param("followingId") Long followingId);

    Integer addUserFollowing(UserFollowing userFollowing);

    List<UserFollowing> getFollowings(Long userId);

    List<UserFollowing> getUserFans(Long userId);
}
